﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pahan.McuFusion.Common
{
    /// <summary>
    /// Surrogate for deserializing <see cref="MemoryClassInfo"/> objects.
    /// </summary>
    public class MemoryClassInfoSurrogate : MemoryClassInfoSurrogateBase<MemoryClassInfo>
    {
        protected override MemoryClassInfo CreateInstance()
        {
            return new MemoryClassInfo(
                Name,
                MemorySize,
                PageSize,
                EmptyValue,
                CanRead,
                CanWrite,
                CanErase);
        }
    }
}
